//
//  YLHealthKitManager+Private.h
//  HealthKitManager
//
//  Created by JuneLee on 2018/11/13.
//

#import "YLHealthKitManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface YLHealthKitManager (Private)

/** 转换保存的数据模型 */
- (HKQuantitySample *)sampleObject:(YLHealthKitModel *)model healthKitType:(YLHealthKitType)healthKitType API_AVAILABLE(ios(8.0));

/** 转换睡眠数据模型 */
- (HKCategorySample *)sleepSample:(YLHealthKitModel *)model  API_AVAILABLE(ios(8.0));

/** 根据写入的数据，获取healthk的identifier */
- (HKQuantityTypeIdentifier)getQuantityIdentifierWith:(YLHealthKitType)healthKitType;

/** 从plist中获取Read的类型 */
- (NSMutableSet *)getReadTypeFromPlist;

/** 从plist中获取Shared的类型 */
- (NSMutableSet *)getSharedTypeFromPlist;

/** 权限集合 */
- (NSMutableSet *)getAuthorizationType:(unsigned)type;

@end

NS_ASSUME_NONNULL_END
